package cn.craftyun.yunexam.service;

import cn.craftyun.yunexam.entity.ExamAnswer;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface ExamAnswerService extends IService<ExamAnswer> {
    int getExamScore(Long examId, Long userId);

    List<ExamAnswer> getExamAnswer(Long examId, Long userId);

    boolean removeByExamId(Long examId);

    boolean removeByUserId(Long userId);

    boolean removeByPaperId(Long paperId);

    List<Map<String, Object>> getUserResult(Long examId, Long userId);
}
